#ifndef _C_CONVERT_H_
#define _C_CONVERT_H_

#include <stdint.h>


extern void msb32_to_array(uint32_t uwData, uint8_t *array); 
extern void msb16_to_array(uint16_t usData, uint8_t *array);
extern void array_to_msb32(const void *buf, uint32_t *ptr);
extern void array_to_msb16(const void *buf, uint16_t *ptr);
extern uint8_t dec_to_bcd(uint8_t data);
extern uint8_t bcd_to_dec(uint8_t data);
uint16_t u16_frombe(const uint8_t *buf);

#endif
